package com.service.product;

import com.action.pc.order.OrderProductVo;
import com.bean.*;
import com.github.pagehelper.Page;
import com.service.core.BaseService;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 商品业务模块
 */
public interface ProductService extends BaseService<Product, Integer> {

    List<Product> getDraList(Integer cityId);

    List<Product> getRecommendList(Integer cityId);

    List<Map> getDraListByMerchantId(Integer MerchantId);

    List<Map> getRecommendListByMerchantId(Integer MerchantId);

    Page findByPage(int pageNum, int pageSize, HashMap<String, Object> paraMap);

    int saveProduct(Product product);

    List<Product_special_rel> findByProductId(Integer id);

    void updateByProductId(Integer id, List<Product_special_rel> list);

    void updatePSRById(Product_special_rel p);
}
